package com.amado.course01;

/**
 * 打印正方形
 * @author wangyl-910
 * @description
 * @date 2018/4/2
 * @see
 */
public class PrintSquare {
    public static void main(String[] args) {
        //println打印并换行
        System.out.println("* * * * * *");
        System.out.println("*         *");
        System.out.println("*         *");
        System.out.println("* * * * * *");
        System.out.println("--------------------------------");
        //\t  相当于tab，缩进
        System.out.println("*\t*\t*\t*\t*");
        System.out.println("*\t\t\t\t*");
        System.out.println("*\t\t\t\t*");
        System.out.println("*\t\t\t\t*");
        System.out.println("*\t*\t*\t*\t*");
        System.out.println("--------------------------------");
        // \n 换行，等同于println
        System.out.print("*\t*\t*\t*\t*\n");
        System.out.print("*\t\t\t\t*\n");
        System.out.print("*\t\t\t\t*\n");
        System.out.print("*\t\t\t\t*\n");
        System.out.print("*\t*\t*\t*\t*\n");
       
    }
}
